<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    .home {
      height: 2000px;
      background-color: #f00;
      /* 最大宽度 */
      max-width: 750px;
      /* 最小宽度 */
      min-width: 500px;
      /* 居中 */
      margin: 0 auto;
    }
  </style>
</head>

<body>
  <div class="home"></div>
</body>

</html>